package com.UnionPayCenter.mapper;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.ManagerEntity;
import com.UnionPayCenter.entity.vo.ManagerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ManagerMapper extends MyMapper<ManagerEntity> {

    ManagerVo login(@Param("username") String username, @Param("password") String password);

    ManagerEntity selectByShopId(@Param("managerId") Integer managerId, @Param("shopId") Integer shopId);

    int countByUsername(@Param("username") String mobile);

    int forgetPassword(@Param("managerEntity")ManagerEntity managerEntity);

    ManagerEntity selectManager(@Param("managerId")Integer managerId);

	int saveCardNumber(@Param("managerEntity")ManagerEntity managerEntity);
}
